<layout name="page" />
<block name="content">
	<style>
		.x-box {
			border: 0px;
		}
		.x-box-body {
			border: 0px solid #ccc;
			border-top: 0px;
			padding-left: 4px;
			padding-right: 4px;
		}
		.x-box-header {
			border-radius: 2px;
			font-size: 16px;
			background: #2794EB;
			color: #f0f0f0;
			line-height: 39px;
			padding-left: 8px;
		}
	</style>
	{:widget('page_header/simple',array('name'=>'任务看板'))}
	<div class="row">
		<div class="col-3 m100" style="margin-bottom: 20px;">
			<div class="wrap">
				<div class="x-box-header">
					待办中
				</div>
				<div class="x-box-body">
					<foreach name="list_todo" val="vo">
						<li class="list-group-item">
							<span class="pull-right">{:substr($vo['end_date'],5,5)}</span>
							<a class="auto " href="{:url('Project/read_task',array('id'=>$vo['id']))}" title="{$vo.name}">#{$vo.id} {$vo.name}</a>
						</li>
					</foreach>
				</div>
			</div>
		</div>
		<div class="col-3 m100" style="margin-bottom: 20px;">
			<div class="wrap">
				<div class="x-box-header">
					进行中
				</div>
				<div class="x-box-body no-padding">
					<foreach name="list_process" val="vo">
						<li class="list-group-item">
							<a class="auto " href="{:url('Project/read_task',array('id'=>$vo['id']))}" title="{$vo.name}">#{$vo.id} {$vo.name}</a>
							<span class="pull-right">{:substr($vo['end_date'],5,5)}</span>
						</li>
					</foreach>
				</div>
			</div>
		</div>
		<div class="col-3 m100" style="margin-bottom: 20px;">
			<div class="wrap">
				<div class="x-box-header">
					已完成
				</div>
				<div class="x-box-body no-padding">
					<foreach name="list_finish" val="vo">
						<li class="list-group-item">
							<a class="auto " href="{:url('Project/read_task',array('id'=>$vo['id']))}" title="{$vo.name}">#{$vo.id} {$vo.name}</a>
							<span class="pull-right">{:substr($vo['end_date'],5,5)}</span>
						</li>
					</foreach>
				</div>
			</div>
		</div>
		<div class="col-3 m100" style="margin-bottom: 20px;">
			<div class="wrap">
				<div class="x-box-header">
					已关闭
				</div>
				<div class="x-box-body no-padding">
					<foreach name="list_close" val="vo">
						<li class="list-group-item">
							<span class="pull-right">{:substr($vo['end_date'],5,5)}</span>
							<a class="auto " href="{:url('Project/read_task',array('id'=>$vo['id']))}" title="{$vo.name}">#{$vo.id} {$vo.name}</a>
						</li>
					</foreach>
				</div>
			</div>
		</div>
	</div>
</block>
<block name="js">
	<script type="text/javascript">
		layui.use(['global'], function() {
			set_return_url();
		});
	</script>
</block>
